const mongoose = require('mongoose');
var Schema = mongoose.Schema;

var dishSchema = new Schema({
    _id: String,
    mid: String,
    name: String,
    img: String,
    price: Number,
    type: String

    // ,
    // comments: [{
    //     content: String,
    //     star: Number,
    //     reply: String,
    //     createTime:Date
    // }]
});

mongoose.model('Dish', dishSchema);